Play command syntax

Play commands are used to define the music file that will be played in background when an album or a picture is displayed.

Play commands can be attached to a single picture or to an album:

The general format of a play command is (caution, no spaces before or after the vertical bars!):

Basic syntax (one line):
    type|file|flags|parameters

Extended syntax (several lines):
    type|file|-|parameters
    type|file|-|parameters
    type|file|-|parameters
    ...
    *flags
        (optional)

With:

typeOne of the following keyword
wavAudio file (*.wav).
midMidi file (*.mid or *.rmi).
cdaCD Audio.
scriptScript file (*.vbs or *.js).
mediaWindows Media Player file (*.wav, *.mp3, *.mpg,...).
fpxrEmbedded sound in a JPEG file (FlashPix extension in a APP2 marker).
syncWait for previously started sound(s) to end (picture level only).

fileThe file containing the media to play (this pathname must not include spaces for wav and mid types)

flagsOne or more of the following uppercase characters:
CContinuous play (picture music only): do not stop when the displayed picture changes.
RRepeat (play in loop).
WSlideshow: wait for the music to stop before going to the next picture.
SSlideshow: stop all playing sounds before playing this one.
VScript: display script console.
IImmediate: play before displaying the picture.

parametersDevice dependent parameters

Some fields are optional and can be omitted. Empty fields are represented by the '-' character.

Examples:

wav|D:\TMP\Thunder.wav
    Plays the specified audio file.

mid|D:\Musique\021.MID|CR
    Plays the specified MIDI file and do not stop playing when picture changes and plays again when finished.

cda|-|-|from 2 to 3
    Play track 2 and 3 from the current CD Audio (note the two empty '-' fields).

script|msgBox "MyAlbum is good for you !"|-|2
    Run the VBScript (2) code without showing the script console. The script shows a simple message box.
    Use the following values for the parameters field: 1: script file, 2: VBScript code, 3: JavaScript code (and 100+i for installed script engine #I).

script|App.GetFullScreenView.ModifySlideShowMode SS_AUTO, False|-|2
media|somemusicfile.mp3
*C

    Run the VBScript (2) code to pause the slideshow and start playing the music. This can be used with a HTML index page waiting for a user selection.

media|C:\MP3 Music\Bob\Burnin' and Lootin'.mp3
    Plays the specified mp3 file using Windows Media Player.

fpxr
    Plays the embedded wav file.